package com.hzncc.flowable_diboot.vo.refundmanage;

import com.diboot.core.binding.annotation.*;
import com.diboot.core.vo.FileVO;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamOrg;
import com.diboot.iam.entity.IamPosition;
import com.diboot.iam.entity.IamRole;
import com.diboot.iam.entity.IamUser;
import com.diboot.file.entity.FileRecord;
import com.diboot.tenant.entity.IamTenant;
import com.hzncc.flowable_diboot.entity.SapCustomer;
import com.hzncc.flowable_diboot.entity.refundmanage.RefundRegister;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;
import java.time.LocalDate;

/**
* 退款登记 VO定义
* @author MyName
* @version 1.0
* @date 2024-11-08
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class RefundRegisterListVO extends RefundRegister  {
private static final long serialVersionUID = 1689142950071861826L;

    /**
    * 是否生成回款凭证 关联字典选项
    */
    @BindDict(type = "yesNo", field = "certed")
    private LabelValue certedLabel;

    /**
    * 创建人 关联信息
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by = id")
    private String createByLabel;

    /**
    * 更新人 关联信息
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.update_by = id")
    private String updateByLabel;

    /**
     * 客户名称
     */
    @BindField(entity = SapCustomer.class,field = "name",condition = "this.customer_id = id")
    private String customerName;

    /**
     * 客户编码
     */
    @BindField(entity = SapCustomer.class, field = "sapNo", condition = "this.customer_id = id")
    private String customerCode;

    @BindDict(
            type = "paymentType",
            field = "refundType"
    )
    private LabelValue refundTypeLabel;

}